<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="~{common/header :: commonHead}">
    <title>限制详情</title>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="row form-body form-horizontal m-t" method="post" th:action="${'/user_level/edit'}">
                        <input name="userLevelId" th:value="${editable?.userLevelId}" style="display: none">
                        <div class="col-md-12 droppable sortable ui-droppable ui-sortable">
                            <div class="form-group draggable ui-draggable dropped" style="position: static;">
                                <label class="col-sm-3 control-label">等级名称：</label>
                                <div class="col-sm-6">
                                    <input type="text" readonly name="levelName" class="form-control" th:value="${editable?.levelName }" placeholder="请输入等级名称">
                                </div>
                            </div>
                            <div class="form-group draggable ui-draggable dropped" style="position: static;">
                                <label class="col-sm-3 control-label">等级介绍：</label>
                                <div class="col-sm-6">
                                    <input type="text" name="levelInfo" class="form-control" th:value="${editable?.levelInfo }" placeholder="请输入等级介绍">
                                </div>
                            </div>
                            <div class="form-group draggable ui-draggable dropped" style="position: static;">
                                <label class="col-sm-3 control-label">会员关系级别：</label>
                                <div class="col-sm-6">
                                    <input type="text" name="levelStratum" readonly class="form-control" th:value="${editable?.levelStratum }" placeholder="请输入等级会员关系级别">
                                </div>
                            </div>
                            <div class="form-group draggable ui-draggable dropped" style="position: static;">
                                <label class="col-sm-3 control-label">需要达到的积分数：</label>
                                <div class="col-sm-6">
                                    <input type="text"  onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" name="integralTotal" class="form-control" th:value="${editable?.integralTotal }" placeholder="请输入等级需要达到的积分数">
                                </div>
                            </div>
                            <div class="form-group draggable ui-draggable dropped" style="position: static;">
                                <label class="col-sm-3 control-label">倍率：</label>
                                <div class="col-sm-6">
                                    <input type="text"  onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')"name="multiply" class="form-control" th:value="${editable?.multiply }" placeholder="请输入等级倍率">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>

                            <div class="form-group draggable ui-draggable">
                                <div class="col-sm-12 col-sm-offset-3">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                </div>
                            </div>

                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $("input[name=endtime]").datepicker({
    });
</script>
</body>
</html>